Retrieves posted sales orders linked to the shopper's current customer.Retrieves posted sales orders linked to the shopper's current customer. Introduced in v2.21.
Method | GetOrders |
The request body is of type GetOrders.
Name | Description | Data Type |
---|---|---|
OrderNumber | The sales order number, or an empty string to ignore. | xml:string |
CustomerPO | The customer purchase order number, or an empty string to ignore. | xml:string |
StartDate | The first day of the search date range in MM/DD/YYYY format, or an empty string to ignore. | xml:string |
EndDate | The last day of the search date range in MM/DD/YYYY format, or an empty string to ignore. | xml:string |
MakeAJAXCall("Order.GetOrders", { OrderNumber: '', CustomerPO: '', StartDate: '10/12/2019', EndDate: '05/01/2020' }, console.log)
The response body is of type GetOrdersResponse.
Name | Description | Data Type |
---|---|---|
GetOrdersResult | A string value containing a JSON object.
{ "Data": [{ "SalesOrder": "001197", "Customer": "000000000000002", "CustomerName": "Bikes and Blades - North", "OrderStatus": "1", "Branch": "10", "OrderType": "", "Area": "N", "AlternateKey": "WEB98", "NextDetailLine": " 3", "DocumentType": "ORD", "Salesperson": "100", "Currency": "$", "CustomerPoNumber": "sdasdasd", "ShipViaCode": "", "ShippingInstrs": "FREE Ground Shipping", "SpecialInstrs": "", "OrderDate": "2019-10-15", "ReqShipDate": "2019-10-15", "SorQuery_Id": 0, "OrderStatusText": "Open Order" }, { "SalesOrder": "001198", "Customer": "000000000000002", "CustomerName": "Bikes and Blades - North", "OrderStatus": "1", "Branch": "10", "OrderType": "", "Area": "N", "AlternateKey": "WEB99", "NextDetailLine": " 5", "DocumentType": "ORD", "Salesperson": "100", "Currency": "$", "CustomerPoNumber": "12345", "ShipViaCode": "", "ShippingInstrs": "Fed Ex - Ground", "SpecialInstrs": "test by greg", "OrderDate": "2019-10-17", "ReqShipDate": "2019-10-30", "SorQuery_Id": 0, "OrderStatusText": "Open Order" }, { "SalesOrder": "001199", "Customer": "000000000000002", "CustomerName": "Bikes and Blades - North", "OrderStatus": "1", "Branch": "10", "OrderType": "", "Area": "N", "AlternateKey": "WEB100", "NextDetailLine": " 5", "DocumentType": "ORD", "Salesperson": "100", "Currency": "$", "CustomerPoNumber": "12345", "ShipViaCode": "", "ShippingInstrs": "FREE Ground Shipping", "SpecialInstrs": "", "OrderDate": "2019-10-17", "ReqShipDate": "2019-10-17", "SorQuery_Id": 0, "OrderStatusText": "Open Order" }, { "SalesOrder": "001200", "Customer": "000000000000002", "CustomerName": "Bikes and Blades - North", "OrderStatus": "1", "Branch": "10", "OrderType": "", "Area": "N", "AlternateKey": "WEB103", "NextDetailLine": " 9", "DocumentType": "ORD", "Salesperson": "100", "Currency": "$", "CustomerPoNumber": "765863", "ShipViaCode": "", "ShippingInstrs": "FREE Ground Shipping", "SpecialInstrs": "", "OrderDate": "2019-12-09", "ReqShipDate": "2019-12-09", "SorQuery_Id": 0, "OrderStatusText": "Open Order" }, { "SalesOrder": "001201", "Customer": "000000000000002", "CustomerName": "Bikes and Blades - North", "OrderStatus": "1", "Branch": "10", "OrderType": "", "Area": "N", "AlternateKey": "WEB104", "NextDetailLine": " 9", "DocumentType": "ORD", "Salesperson": "100", "Currency": "$", "CustomerPoNumber": "6776342", "ShipViaCode": "", "ShippingInstrs": "FREE Ground Shipping", "SpecialInstrs": "", "OrderDate": "2019-12-09", "ReqShipDate": "2019-12-09", "SorQuery_Id": 0, "OrderStatusText": "Open Order" }, { "SalesOrder": "001203", "Customer": "000000000000002", "CustomerName": "Bikes and Blades - North", "OrderStatus": "1", "Branch": "10", "OrderType": "", "Area": "N", "AlternateKey": "WEB108", "NextDetailLine": " 5", "DocumentType": "ORD", "Salesperson": "100", "Currency": "$", "CustomerPoNumber": "9678456735", "ShipViaCode": "", "ShippingInstrs": "FREE Ground Shipping", "SpecialInstrs": "", "OrderDate": "2020-04-15", "ReqShipDate": "2020-04-15", "SorQuery_Id": 0, "OrderStatusText": "Open Order" }], "Result": { "Success": true, "Message": "The request returned 6 order results.", "ElapsedTime": "61 ms" } } | xml:string |